﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CategoryControl.ascx.cs" Inherits="controls_CategoryControl" %>
<nav class="categories">
    <ul>
        <li class="parent homepage current"><a href="/" title="Trang chủ">Trang chủ</a></li>
        <asp:Repeater ID="rptCategory" runat="server">
            <ItemTemplate>
                <li class="parent <%# Eval("Class") %>">
                    <a href='<%# Eval("Link") %>'><%# Eval("CategoryName") %></a>
                    <div class="subcate">
                        <ul>
                            <asp:Repeater runat="server" DataSource='<%#Eval("TB_Categories") %>'>
                                <ItemTemplate>
                                    <li><a href='<%# Eval("Link") %>'><%# Eval("CategoryName") %></a></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
</nav>
